package com.cskaoyan.controller;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.DashBoardVo;
import com.cskaoyan.service.AdminDashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/dashboard")
public class AdminDashBoardController {

    @Autowired
    AdminDashboardService adminDashboardService;

    @RequestMapping
    public BaseRespVo dashboard(){
        DashBoardVo dashBoardVo = adminDashboardService.dashboard();
        return BaseRespVo.ok(dashBoardVo,"成功");
    }



}
